package com.manage;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.manage.base.BaseActivity;

/**
 * 账目统计列表
 * @author liyoro
 * @date 2012-6-6
 * 
 */
public class AccountsStatisticsActivity extends BaseActivity implements OnClickListener{

	private static String TAG = "AccountsStatisticsActivity";
	
	private Button btnAccountsToday = null;
	private Button btnAccountsMonth = null;
	private Button btnAccountsBE = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		initDatas();
		this.setContentView(R.layout.activity_manage_accounts_statistics);
	}
	
	@Override
	public String getLeftBtnName() {
		return "返回";
	}

	@Override
	public String getTitleName() {
		return "账目统计";
	}

	@Override
	public boolean showButton() {
		return true;
	}

	@Override
	public void initView() {
		btnAccountsToday = (Button)findViewById(R.id.btn_accounts_today);
		btnAccountsToday.setOnClickListener(this);
		btnAccountsMonth = (Button)findViewById(R.id.btn_accounts_month);
		btnAccountsMonth.setOnClickListener(this);
		btnAccountsBE = (Button)findViewById(R.id.btn_accounts_be);
		btnAccountsBE.setOnClickListener(this);
	}

	@Override
	public void initDatas() {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void onClick(View v) {
		int viewID = v.getId();
		switch(viewID) {
		case R.id.btn_accounts_today:
			Intent mIntent = new Intent();
			mIntent.setClass(AccountsStatisticsActivity.this, AccountsTodayActivity.class);
			
			startActivity(mIntent);
			break;
		case R.id.btn_accounts_month:
			Intent mIntentMonth = new Intent();
			mIntentMonth.setClass(AccountsStatisticsActivity.this, AccountsMonthActivity.class);
			
			startActivity(mIntentMonth);
			break;
		case R.id.btn_accounts_be:
//			ACCOUNTBEURL
			Intent mIntentBE = new Intent();
			mIntentBE.setClass(AccountsStatisticsActivity.this, AccountsBEActivity.class);
			
			startActivity(mIntentBE);
			break;
		default:
			break;
		}
	}
}
